// Tailwind utilities are included via src/index.css
import { Routes, Route } from 'react-router-dom'

import PrivacyPolicy from './pages/PrivacyPolicy.jsx'
import TermsOfService from './pages/TermsOfService.jsx'
import LeadForm from './pages/LeadForm.jsx'
import SubmitSuccess from './pages/SubmitSuccess.jsx'
import Home from './pages/Home.jsx'
import NotWexin from './pages/NotWexin.jsx'

import './styles/base.css';

function Layout({ children }) {
  return (
    <div className="w-full">
      <main className="w-full">
        {children}
      </main>
    </div>
  )
}

function App() {
  return (
    <Layout>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/form" element={<LeadForm />} />
        <Route path="/privacy" element={<PrivacyPolicy />} />
        <Route path="/terms" element={<TermsOfService />} />
        <Route path="/success" element={<SubmitSuccess />} />
        <Route path="/notWexin" element={<NotWexin />} />
      </Routes>
    </Layout>
  )
}

export default App